﻿using dz.u9.jky.schema.Attrib;
using dz.u9.jky.schema.Common;
using System;
using System.Collections.Generic;

namespace dz.u9.jky.schema.Ship
{
    public class DzShip
    {
        /// <summary>
        /// 
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string DocNo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime BusinessDate { get; set; }
        /// <summary>
        /// 价格含税
        /// </summary>
        public bool IsPriceIncludeTax { get; set; }

        /// <summary>
        /// 弹性域
        /// </summary>
        [DzComplexObject("UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegments,UFIDA.U9.Base.BaseBE")]
        public DescFlexField DescFlexField { get; set; }


        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string SaleDept { get; set; }


        /// <summary>
        /// 交易币种
        /// </summary>        
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string TC { get; set; }

        /// <summary>
        /// 币种
        /// </summary>        
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]     
        public string AC { get; set; }

        /// <summary>
        /// 立账位置
        /// </summary>        
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string BillToSite { get; set; }

        /// <summary>
        /// 收款条件
        /// </summary>        
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string ReceivableTerm { get; set; }

        /// <summary>
        /// 付款位置
        /// </summary>        
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string PayerSite { get; set; }

        /// <summary>
        /// 汇率类型
        /// </summary>
        
        [DzEnum("UFIDA.U9.Base.Currency.ExchangeRateTypesEnum,UFIDA.U9.Base.BaseBE")]
        public int ExchangeRateType { get; set; } = -1;

        /// <summary>
        /// 税组合
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string TaxSchedule { get; set; }

        /// <summary>
        /// 出货单明细
        /// </summary>
        [DzList("UFIDA.U9.ISV.SM.ShipLineDTOForIndustryChain,UFIDA.U9.ISV.SM.SDIndustryChainSV")]
        public List<DzShipLine> ShipLines { get; set; }

        /// <summary>
        /// 组织        /// </summary>
        /// 组织        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string Org { get; set; }

        /// <summary>
        /// 单据类型
        /// </summary>

        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string DocumentType { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string OrderBy { get; set; }

        /// <summary>
        /// 出货单税明细
        /// </summary>
        [DzList("UFIDA.U9.ISV.SM.ShipTaxDTOForIndustryChain,UFIDA.U9.ISV.SM.SDIndustryChainSV")]
        public List<DzShipTax> ShipTaxs { get; set; }

        /// <summary>
        ///地址信息
        /// </summary>
        [DzList("UFIDA.U9.ISV.SM.ShipAddressDTOForIndustryChain,UFIDA.U9.ISV.SM.SDIndustryChainSV")]
        public List<DzShipAddress> ShipAddresss { get; set; }

        /// <summary>
        ///记账期间
        /// </summary>
        [DzList("UFIDA.U9.ISV.SM.SOBPeriodSRVDTOForIndustryChain,UFIDA.U9.ISV.SM.SDIndustryChainSV")]
        public List<DzSOBPeriod> SOBPeriods { get; set; }

        /// <summary>
        ///	业绩分配信息
        /// </summary>
        [DzList("UFIDA.U9.ISV.SM.ShipAchievementDTOForIndustryChain,UFIDA.U9.ISV.SM.SDIndustryChainSV")]
        public List<DzShipAchievement> ShipAchievements { get; set; }

        /// <summary>
        ///	联系人信息
        /// </summary>
        [DzList("UFIDA.U9.ISV.SM.ShipContactDTOForIndustryChain,UFIDA.U9.ISV.SM.SDIndustryChainSV")]
        public List<DzShipContact> ShipContacts { get; set; }

        /// <summary>
        ///	费用信息
        /// </summary>
        [DzList("UFIDA.U9.ISV.SM.ShipFeeDTOForIndustryChain,UFIDA.U9.ISV.SM.SDIndustryChainSV")]
        public List<DzShipFee> ShipFees { get; set; }



    }
}
